<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<link href="css/zTreeStyle/zTreeStyle.css" rel="stylesheet" type="text/css">					<!-- zTree CSS函式庫 -->
<link href="css/redmond/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" type="text/css">	<!-- jquery UI CSS函式庫 -->
<link href="css/selfTemplate.css" rel="stylesheet" type="text/css">							<!-- 自建CSS函式庫 -->
					
<script src="js/jquery-1.10.2.min.js" type="text/javascript"></script>								<!-- jquery 函式庫 -->
<script src="js/jquery-ui-1.10.3.custom.js" type="text/javascript"></script>					<!-- jquery UI 函式庫 -->
<script src="js/jquery.cookie.js" type="text/javascript"></script>								<!-- 操做cookie用 -->
<script src="js/widgets.js" type="text/javascript"></script>									<!-- 自建函式庫 -->

<script type="text/javascript">

$(document).ready(function(){
	
	init("exceptionQuery.html");
	
	$.ajax({ type:'post',url:"QueryErrorLogs",dataType:'json',async:false,
		data: {queryRowLimitedNumber:10},
		success : function(reses) {
			$.each(reses, function(i,res) {
				var tmp = "<tr><td>"+(i+1)+"</td><td>"+res.s1+"</td><td>"+res.s2+"</td><td>"+((res.s3==undefined)?"":res.s3) +"</td></tr>";
				$("#tbodyQueryException").append(tmp);				
			});
			refreshUI(1,"tbodyQueryException",false);
		}, error : function(xhr, ajaxOptions, thrownError) { errorAjx(xhr); }
	});
	
});


</script>


</head>
<body>
	<div id="header"></div>		<!-- 畫面抬頭 -->
	
	<table id="tableQueryException">
		<thead class="tableFirst">
			<tr><th>#</th><th>發生日期</th><th>例外內容</th><th>其它描述</th></tr>
		</thead>
		<tbody id="tbodyQueryException"></tbody>
	</table>
</body>
</html>